$i_c: #999;
$i_w: 32px;
$i_h: 32px;
$c_succ: #4a7;
$c_warn: #cc0;
$c_error: #d10;
@keyframes vue_upload_progress {
	0% {
		background-position: 0 0;
	}

	100% {
		background-position: 10px 0;
	}
}
@keyframes vue_upload {
	0% {
		opacity: 0;
		transform: scale(0) translatey(-60px);
	}

	100% {
		opacity: 1;
		transform: scale(1) translatey(0);
	}
}
body,html{
  position: relative;
}
.cont{

  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  //z-index: 998;
  .vue-upload-file {
    //position: absolute;
    display: block;
    box-sizing: border-box;
    z-index: 999;
    margin-top: 5rem;
    //text-align: center;
    margin-left: 1rem;
    //left: 50%;
    //margin-top: 12px;
    //margin-left: -140px;
    //padding: 12px 16px;
    //width: 280px;
    width: 5rem;
    padding: 0.3rem ;
    background: #ccc;


    //top: 0; left: 0; bottom: 0; right: 0;

    //box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0);
    //border-top: 2px solid rgba(0, 0, 0, 0.8);
    animation: vue_upload 0.15s ease-in;

    //&::before {
    //	position: absolute;
    //	content: '';
    //	top: -8px;
    //	left: 132px;
    //	width: 0;
    //	height: 0;
    //	border-bottom: 7px solid rgba(0, 0, 0, 0.8);
    //	border-left: 7px solid transparent;
    //	border-right: 7px solid transparent;
    //}

    .vuf-drop-area {
      position: relative;
      padding: 10px;
      height: 2rem;
      //background-color: rgba(0, 0, 0, 0.03);
      text-align: center;
      border: 1px dashed #ddd;
    //  background-color: #888888;
      color: black;
      background-color: #ccc;
      //opacity: .2;

      // 上传图标
      .vuf-icon1 {
        display: block;
        margin: 0 auto ;
        width: $i_w;
        height: $i_h;
        overflow: hidden;
        padding-top: .5rem;

        .vuf-icon1-arrow {
          display: block;
          margin: 0 auto;
          width: 0;
          height: 0;
          border-bottom: $i_h * 0.35 solid $i_c;
          border-left: $i_h * 0.35 solid transparent;
          border-right: $i_h * 0.35 solid transparent;
        }

        .vuf-icon1-body {
          display: block;
          width: $i_w * 0.3;
          height: $i_h * 0.35;
          margin: 0 auto;
          background-color: $i_c;
        }

        .vuf-icon1-bottom {
          box-sizing: border-box;
          display: block;
          height: $i_h * 0.3;
          border: 5px solid $i_c;
          border-top: none;
        }
      }

      .vuf-hint {
        font-size: .3rem;
        color: #449d44;
        line-height: .35rem;
      }

      .vuf-loading {
        font-size: 16px;
        color: #999;
        line-height: 30px;
      }

      .vuf-progress-wrap {
        display: block;
        background-color: rgba(#000, 0.14);

        .vuf-progress {
          position: relative;
          margin-top: 12px;
          display: block;
          height: 3px;
          background-color: $c_succ;
          box-shadow: 0 1px 3px 0 rgba($c_succ, 0.3);
          transition: width 0.5s ease;
          background-image: linear-gradient(-45deg, rgba(#fff, 0.2) 25%, transparent 25%, transparent 50%, rgba(#fff, 0.2) 50%, rgba(#fff, 0.2) 75%, transparent 75%, transparent);
          background-size: 10px 10px;
          animation: vue_upload_progress 0.3s linear infinite;

          &::after {
            content: '';
            position: absolute;
            display: block;
            top: -2px;
            right: -2px;
            width: 5px;
            height: 5px;
            border: 1px solid rgba(#fff, 0.6);
            box-shadow: 0 1px 4px 0 rgba($c_succ, 0.7);
            border-radius: 100%;
            background-color: $c_succ;
          }
        }
      }

      .vuf-no-supported-hint {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        padding: 10px 0;
        width: 100%;
        height: 60px;
        line-height: 30px;
        background-color: #eee;
        text-align: center;
        color: #888;
        font-size: 14px;
      }

      &:hover {
        cursor: pointer;
        border-color: #ccc;
        background-color: rgba(0, 0, 0, 0.06);

        .vuf-hint {
          color: #777;
        }
      }
    }

    .vuf-error,
    .vuf-success {
      display: block;
      font-size: 14px;
      line-height: 24px;
      height: 24px;
      color: $c_error;
      text-align: center;
      vertical-align: top;
    }

    .vuf-success {
      color: $c_succ;
    }

    // 成功图标
    .vuf-icon3 {
      position: relative;
      display: inline-block;
      width: 20px;
      height: 20px;
      top: 4px;

      &::after {
        position: absolute;
        top: 3px;
        left: 6px;
        width: 6px;
        height: 10px;
        border-width: 0 2px 2px 0;
        border-color: $c_succ;
        border-style: solid;
        transform: rotate(45deg);
        content: '';
      }
    }

    // 错误图标
    .vuf-icon2 {
      position: relative;
      display: inline-block;
      width: 20px;
      height: 20px;
      top: 4px;

      &::after,
      &::before {
        content: '';
        position: absolute;
        top: 9px;
        left: 4px;
        width: 13px;
        height: 2px;
        background-color: $c_error;
        transform: rotate(45deg);
      }

      &::after {
        transform: rotate(-45deg);
      }
    }
  }

}

